package com.zf.rpc.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @ProjectName: RPC-zhaofeng
 * @Package: com.zf.simpleImplementation
 * @ClassName: RpcRequest
 * @Author: zf
 * @Description:
 * @Date: 2021/5/6 18:40
 * @Version: 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RpcRequest implements Serializable {
    /**
     * 请求号
     */
    private String requestId;

    //待调用接口名称
    private String interfaceName;

    //待调用方法名称
    private String methodName;

    //调用方法参数
    private Object[] parameters;

    //调用方法参数类型,也可以用字符串
    private Class<?>[] paramTypes;

    //是否是心跳包
    private Boolean heartBeat;
}
